﻿<aw:ToolWindow
	x:Class="BookvarWpf.Windows.Collaboration.ConnectToServer"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:aw="clr-namespace:Assergs.Windows;assembly=Assergs.Windows"
    xmlns:r="clr-namespace:Bookvar.UI.Localization;assembly=Bookvar.UI"
	Header="{r:Resources ConnectToServerHeaderText}"
	Icon="pack://application:,,,/BookvarWPF;component/Resources/Icons/16x16/Darf16.png"
	Style="{DynamicResource {x:Type aw:ToolWindow}}"
    Background="{StaticResource ListBackground}"
    Width="300"
    Height="150" 
	>
  <Grid>
    <Grid.Resources>
      <Style TargetType="{x:Type TextBox}">
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="BorderThickness" Value="0,0,0,0" />
        <Setter Property="Margin" Value="2,2,2,2" />
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Width" Value="150" />
      </Style>

      <Style TargetType="{x:Type Border}">
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="BorderBrush" Value="#FF85A7DB" />
        <Setter Property="Background" Value="#FFF0F7FF" />
        <Setter Property="CornerRadius" Value="5,5,5,5" />
        <Setter Property="Margin" Value="2,2,2,2" />
        <Setter Property="Height" Value="24" />
        <Setter Property="BorderThickness" Value="1,1,1,1" />
      </Style>

      <Style TargetType="{x:Type Label}">
        <Setter Property="FontFamily" Value="Verdana" />
        <Setter Property="FontSize" Value="10" />
        <Setter Property="Foreground" Value="#FF3E6494" />
        <Setter Property="HorizontalContentAlignment" Value="Left" />
      </Style>
    </Grid.Resources>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="86" />
      <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition Height="28" />
      <RowDefinition Height="28" />
      <RowDefinition Height="28" />
    </Grid.RowDefinitions>
    <Label Grid.Row="0" Grid.Column="0" Content="{r:Resources ConnectToServerYourNameText}" />
    <Border  Grid.Row="0" Grid.Column="1" >
      <TextBox x:Name="NameTextBox" />
    </Border>
    <Label Grid.Row="1" Grid.Column="0" Content="{r:Resources ConnectToServerAddressText}" />
    <Border Grid.Row="1" Grid.Column="1" >
      <TextBox x:Name="HostTextBox">localhost</TextBox>
    </Border>
    <Button Grid.Row="2" Grid.Column="1" x:Name="ConnectBtn" Click="OnConnectClicked" 
            HorizontalAlignment="Left" Height="22" BorderBrush="#FF536B88" IsDefault="True"
            Background="{StaticResource BlueButtonStyleBrush}" Content="{r:Resources ConnectToServerConnectText}" />
  </Grid>
</aw:ToolWindow>